alert("3423");
function doit(site)
{
	//pageNum= document.form2.pageNum.value;
	pageNum=document.getElementsByName("pageNum");
	pageNum=pageNum[0].value;
	//alert(pageNum);
	document.form1.action=site+".jsp?pageNum=" + pageNum;
	document.form1.submit();
}
function schedule(item)
{
	//alert("����ִ������ת��ϸ����");
	//alert(item);
	var p=item.parentNode;
	p=p.parentNode;
	s=p;
	p=p.childNodes[0];
	s=s.childNodes[1];
	p=p.firstChild;
	s=s.firstChild;
	//alert(p.data);
	window.location.href="create_order.jsp?spec="+p.data+"&transnum="+s.data;
}
function forward_backward(site,page_num)
{
	document.getElementsByName("pageNum")[0].value=page_num;
	document.form1.action= site+".jsp?pageNum="+eval(page_num);
	document.form1.submit();
}

function jiesuan(item)
{
	var all=item.parentNode.parentNode;
	//alert(all.childNodes.length);
	//alert(all.firstChild.firstChild.type);
	//alert(all.childNodes[0]);
	//alert(all.childNodes[0].firstChild.firstChild.data);
	//alert(item.parentNode.childNodes[0].href);

	var ssign=all.childNodes[0].firstChild.data;
      	var spec=all.childNodes[1].firstChild.data;
	var plate=all.childNodes[2].firstChild.data;
	var num=all.childNodes[3].firstChild.data;
	//alert("spec:"+spec);
	//alert("create_order.jsp?ssign="+ssign+"&spec="+URLencode(spec)+"&plate="+plate+"&ordernum="+num);
	window.location.href="create_order.jsp?ssign="+ssign+"&spec="+URLencode(spec)+"&plate="+plate+"&ordernum="+num;

}
function changedate(){
	window.form1.action="ordersum_index.jsp";
	window.form1.submit();
}
function deleteOrder()
{
	document.form1.action= "delete_doing.jsp?id=<%=id%>";
      	document.form1.submit();
}
function doit2()
{
	pageNum= document.form2.pageNum.value;
	document.form1.action="diaoborenwu_search_list.jsp?pageNum=" + pageNum;
	document.form1.submit();
}

function showDetail(item)
{
	var spec=item.parentNode.parentNode.childNodes[0].firstChild.data;

	var ssign=item.parentNode.parentNode.childNodes[4].firstChild.data;
	var plate=item.parentNode.parentNode.childNodes[5].firstChild.data;
	var date1=item.parentNode.parentNode.childNodes[9].firstChild.data;
	var link="create_order.jsp?spec="+URLencode(spec)+"&ssign="+ssign+"&plate="+plate+"&date1="+date1+"&action=show";
	//alert(link);
	window.location.href=link;
}
function updateOrder(item)
{
	var spec=item.parentNode.parentNode.childNodes[0].firstChild.data;
	var ordernum=item.parentNode.parentNode.childNodes[3].firstChild.data;
	var ssign=item.parentNode.parentNode.childNodes[4].firstChild.data;
	var plate=item.parentNode.parentNode.childNodes[5].firstChild.data;
	var date1=item.parentNode.parentNode.childNodes[9].firstChild.data;
	var link="create_order.jsp?spec="+URLencode(spec)+"&ssign="+ssign+"&plate="+plate+"&date1="+date1+"&ordernum="+ordernum+"&action=change";
	//alert(link);
	if(window.confirm("�Ƿ������Ҫ���½���?"))
	window.location.href=link;
	else
        return false;
}
function deleteOrder(item)
{

	var spec=item.parentNode.parentNode.childNodes[0].firstChild.data;
	var ssign=item.parentNode.parentNode.childNodes[4].firstChild.data;
	var date1=item.parentNode.parentNode.childNodes[9].firstChild.data;
	var link="create_order.jsp?spec="+URLencode(spec)+"&ssign="+ssign+"&date1="+date1+"&action=delete";
	//alert(link);
	if(window.confirm("�Ƿ������Ҫɾ��?"))
	window.location.href=link;
	else
        return false;
}
var name_r=["spec","ssign","defspec"];
var t=$A(name_r);

function checkForm(form1)
{
	var i=0;
	//alert(form1.length);
	if(!checkCreate())
		return false;
	while(typeof(form1[i])!="undefined")
	{
		if(form1[i].type=="text")
		{

			if(t.include(form1[i].name))
				{i++;continue;}
			if(!isFloat(form1[i].value))
				{form1[i].focus();alert(form1[i].value+"����ʵ������������");return false;}
		}
		i++;
        }
}
function changeTransnum(site)
{

	document.form1.action=site+".jsp";
	//alert(document.form1.action);
	document.form1.submit();
}
function refresh(site)
{

	document.form1.action=site+".jsp";
	//alert(document.form1.action);
	document.form1.submit();
}